package com.dcy.znoa.domain.conference;

import java.util.Date;

import org.hibernate.validator.constraints.Length;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 访客
 * @author chenjie
 *
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("oper_guest")
public class OperGuest {
	
	@TableId(type = IdType.AUTO, value = "guest_id")
    Long guestId;
	
	@TableField("oper_id")
	Long operId;
	
	@TableField("g_name")
    String gName;
	
	@TableField("credential_type")
    Integer credentialType;
	
	@TableField("credential_no")
    String credentialNo;
	
	@TableField("phone")
	@Length(max = 13)
    String phone;
	
	@TableField("comp_name")
    String compName;
	
	@TableField("person_no")
    Integer personNo;
	
	@TableField("car_no")
	String carNo;   //访客车牌号：多个就用逗号分隔
	
	@TableField("comment")
	String comment;
	
	@TableField("comp_id")
    Long compId;
	
	@TableField("audit_status")
    Integer auditStatus;    //0 TO_AUDIT  1审批通过   2拒绝
	
	@TableField("audit_comment")
	String auditComment;
	
	@TableField("interview_status")
    Integer interviewStatus;
	
	@TableField("qr_code")
    String qrCode;
    
	@TableField("guest_time")
    Date guestTime;
	
	@TableField("create_oper_id")
    Long createOperId;
	
    @TableField("create_oper_name")
    String createOperName;

    @TableField("create_time")
    Date createTime;

    @TableField("update_oper_name")
    String updateOperName;
    
    @TableField("update_oper_id")
    Long updateOperId;

    @TableField("update_time")
    Date updateTime;

    @TableField("valid_flag")
    Integer validFlag;
}
